//
//  WNLockEvent.swift
//  WNLockDemo
//
//  Created by 裴威 on 05/09/2018.
//  Copyright © 2018 wunu. All rights reserved.
//

import Foundation
import ObjectMapper

struct WNLockEventModel {
    var id: Int?
    var name: String?
    var photo: String?
    var group: Int?
    var state: Int?
    var event: Int?
    var time: TimeInterval?
}

extension WNLockEventModel: Mappable {
    init?(map: Map) {
    }
    mutating func mapping(map: Map) {
        id <- map["id"]
        name <- map["name"]
        photo <- map["photo"]
        group <- map["group"]
        state <- map["state"]
        event <- map["event"]
        time <- map["time"]
    }
}
